package com.hengxinyongli.iam.exception;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

import java.io.Serializable;

/**
 * @author magic
 * @date 2018/9/28/028 17:33
 * @version 1.0
 * Description IamTokenVerifyException
 */
@ResponseStatus(HttpStatus.UNAUTHORIZED)
public class IamTokenVerifyException extends RuntimeException  implements Serializable {

    private String message;

    public IamTokenVerifyException(String message,Throwable throwable){
        super(message,throwable);
        this.message = message;
    }


    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
